package com.qq.weixin.mp.model;

import java.io.Serializable;

/**
 * API执行结果
 * @author li.jiang
 *
 */
public final class ErrorBean implements Serializable {

    private static final long serialVersionUID = -1959204458851373536L;
    /**
     * 错误编码 (0表示成功，其余表示失败，具体含义参照微信API文档)
     */
    private Integer errcode;
    /**
     * 错误消息
     */
    private String errmsg;
    /**
     * @return the errcode
     */
    public Integer getErrcode() {
        return errcode;
    }
    /**
     * @param errcode the errcode to set
     */
    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }
    /**
     * @return the errmsg
     */
    public String getErrmsg() {
        return errmsg;
    }
    /**
     * @param errmsg the errmsg to set
     */
    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "ErrorBean [errcode=" + errcode + ", errmsg=" + errmsg + "]";
    }
}
